package com.song.polo;

import org.springframework.stereotype.Component;

import java.sql.Timestamp;

public class Courier {
    private Integer courierId;
    private String courierName;
    private String password;
    private String IDCard;
    private String courierPhone;
    private Integer numberOfDelivery;
    private Timestamp loginTime;
    private Timestamp registerTime;

    private String loginTime1;
    private String registerTime1;

    public Courier(String courierName, String password, String IDCard, String courierPhone) {
        this.courierName = courierName;
        this.password = password;
        this.IDCard = IDCard;
        this.courierPhone = courierPhone;
    }

    public String getLoginTime1() {
        return loginTime1;
    }

    public void setLoginTime1(String loginTime1) {
        this.loginTime1 = loginTime1;
    }

    public String getRegisterTime1() {
        return registerTime1;
    }

    public void setRegisterTime1(String registerTime1) {
        this.registerTime1 = registerTime1;
    }

    public Courier() {
    }

    public Courier(String courierName, String password, String IDCard, String courierPhone, Integer numberOfDelivery) {
        this.courierName = courierName;
        this.password = password;
        this.IDCard = IDCard;
        this.courierPhone = courierPhone;
        this.numberOfDelivery = numberOfDelivery;
    }

    public Courier(Integer courierId, String courierName, String password, String IDCard, String courierPhone, Integer numberOfDelivery) {
        this.courierId = courierId;
        this.courierName = courierName;
        this.password = password;
        this.IDCard = IDCard;
        this.courierPhone = courierPhone;
        this.numberOfDelivery = numberOfDelivery;
    }

    public Courier(Integer courierId, String courierName, String password, String IDCard, String courierPhone, Integer numberOfDelivery, Timestamp loginTime, Timestamp registerTime) {

        this.courierId = courierId;
        this.courierName = courierName;
        this.password = password;
        this.IDCard = IDCard;
        this.courierPhone = courierPhone;
        this.numberOfDelivery = numberOfDelivery;
        this.loginTime = loginTime;
        this.registerTime = registerTime;
    }

    @Override
    public String toString() {
        return "courier{" +
                "courierId=" + courierId +
                ", courierName='" + courierName + '\'' +
                ", password='" + password + '\'' +
                ", IDCard='" + IDCard + '\'' +
                ", courierPhone='" + courierPhone + '\'' +
                ", numberOfDelivery=" + numberOfDelivery +
                ", loginTime=" + loginTime +
                ", registerTime=" + registerTime +
                '}';
    }

    public Integer getCourierId() {
        return courierId;
    }

    public void setCourierId(Integer courierId) {
        this.courierId = courierId;
    }

    public String getCourierName() {
        return courierName;
    }

    public void setCourierName(String courierName) {
        this.courierName = courierName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIDCard() {
        return IDCard;
    }

    public void setIDCard(String IDCard) {
        this.IDCard = IDCard;
    }

    public String getCourierPhone() {
        return courierPhone;
    }

    public void setCourierPhone(String courierPhone) {
        this.courierPhone = courierPhone;
    }

    public Integer getNumberOfDelivery() {
        return numberOfDelivery;
    }

    public void setNumberOfDelivery(Integer numberOfDelivery) {
        this.numberOfDelivery = numberOfDelivery;
    }

    public Timestamp getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Timestamp loginTime) {
        this.loginTime = loginTime;
    }

    public Timestamp getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Timestamp registerTime) {
        this.registerTime = registerTime;
    }
}
